a mainCamera;
public Camera guiCamera;
public GameObject prefab;
public void fire( Vector3 clickedPos_ )
{
GameObject _gameObj = Instantiate( prefab, clickedPos_, Quaternion.identity ) as GameObject;
// No mean yet, just align as child
SomeTools.AppendChildAndReset( gameObject, _gameObj );
// run floating script
FloatingT
ur y velocity
// each frame call game loop to set object's position(move it along the predefined angle)
function GameLoop()
{
movingObject.x = movingObject.x + velocity_x;
movingObject.y = movingObject.y + velocity_y;
}//end game loop
</code>
======Accelerat
비활성활 상태로 만들고 필요할때 활성화할때.
* Awake()에서 <code>gameObject.SetActive(false);</code>로 비활성 상태로 만들고,
* 필요할때, <code>gameObject.SetActive(true)</code> 호출해서 활성화한다.
그리고,
* **Sta... xample : MonoBehaviour {
void Start() {
GameObject go = GameObject.Find("SomeGuy");
go.GetComponent<OtherScript>().DoSomething();
GameObject player
|
| pUnk | 리턴된 인터페이스 포인터 |
- 내부에서는 CoGetClassObject()를 (책에 의하면) 호출하여 COM 객체(클래스객체)를 구한다고 함, 설명하기 위한 예... )
- IClassFactory 인터페이스 변수 준비
- CoGetclassObject()
- 레지스트리로부터 COM 객체의 경로명과 파일명을 구한다.
... COM 객체를 로딩
- GetProcAddress() : "DllGetClassObject" 함수 포인터 얻기
- DllGetClassObject()로 COM 객체와 대응되는 클래스팩토리 COM 객체를 얻어 리턴
- 리턴된 클래스팩토리 COM 객체의 Create
====== 바인딩 ======
바인딩(걸수 있는)소스
* CLR 개체<sup>Object</sup>
* XML 데이터 또는 파일
* ADO.Net 데이터
* UIElement(?)
* List와 같은 목록 개체<sup>Object</sup>
Mode (연결 방식)
* OneWay
* TwoWay
* OneW... er )
====== 바인딩 소스 지정 : 개요 ======
* 해당 개체<sup>Object</sup>의 '.Resource' 의 태그에서 DataContext 로 데이터 지정
<... ==== 값에 대한 경로 지정 =====
바인딩소스가
= Path : 개체<sup>Object, Class</sup> : Path 속성을 사용 ([[http://msdn.microso
rowserItem.
The item is simple, it has an NSImage object and an NSString that provides an ID for the item.... ) imageRepresentation;
</code>
In order for this object to conform to the informal protocol, these three ... file IKBBrowserItem.m.
We start off the standard object initialization. Nothing fancy, we simply pass in ... image representation, which is simply the NSImage object.
Data Source Setup
Back in our controller sourc
entation Is Chosen ====
When you tell an NSImage object to draw itself, it searches its list of image rep... single representation—for example, if the NSImage object has two color TIFF representations with the same ... st send a setDataRetained: message to the NSImage object. Preferably, you should send this message immediately after creating the image object. If you send the message after rendering the imag
enpick-1.jpg|}}
====== 사용할 변수 ======
* didPickObject : 게임오브젝트가 선택 되었는가?
* pickedGameObject : 선택한 게임 오브젝트 저장
* mouseX, mouseY : 마우스가 클릭된 화면상의 위치
* isDebu... ty:playmaker:pm-screenpick-3.jpg|}}
====== 'checkObject' state ======
- Screen Pick : 전제 조건이 있어서 헤매는 부... 얻어오지 않았다.</color>
* didPickObject와 pickedGameObject 에 확인된 오브젝트를 저장한다.
- Game Object Compare : 간단한 부