Text2D.cs 를 FloatingTextLabel 라벨이 추가한다.
* TargetObject에 따라다닐 오브젝트를 추가 ( 위에서 만든, 'objTest'를 추가 )
* Worl... 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
SomeTool
playmaker:pmexam1_hierarchy_2.png|}}
* **MovingObject** : 이동할 오브젝트
* **Position** : 오브젝트가 이동할 경로들의 부모... 동할지, 랜덤하게 선택하게 이동할지 결정.
* **MsgRecver** : MovingObject의 메시지를 받을 서브 오브젝트.
===== 씬 화면 =====
| {{:languag... ker:pmexam1_gameview_1.png|}} | 움직일 오브젝트, **MovingObject** |
| {{:language:unity:4-playmaker:pmexam1_gamev... 모름
===== PlayMaker FSM 추가 =====
게임 오브젝트 **MovingObject**에 새로운 FSM 추가.
(PlayMaker 태그가 붙어 있는 스샷 추가)
====
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
ing System.Collections.Generic;
public class GameObjectPool
{
protected Queue<GameObject> mDefautQueue;
protected int mRefillTiming = 5;
protected int mCnt...
protected int mMaxNumber = 20;
protected GameObject mTargetPrefab;
protected GameObject mParentObj;
public void initQueue( GameObject parentObj_, GameOb
====== 객체를 멈춘 상태로 만들어 놓고, 시작할때 활성화 할때 ======
GameObject를 비활성활 상태로 만들고 필요할때 활성화할때.
* Awake()에서 <code>gameObject.SetActive(false);</code>로 비활성 상태로 만들고,
* 필요할때, <code>gameObject.SetActive(true)</code> 호출해서 활성화한다.
그리고,
* **Sta... tation/ScriptReference/index.Accessing_Other_Game_Objects.html|Overview: Accessing Other Game Objects]]
=
e an NSMutableArray so that we can simply load up objects into it. Next we take care of some configuration... wserView. I'll discuss this more below).
Display Objects
Now that we have this setup we need to have a w... 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
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
atag-robots=()
metatag-keywords=(코코아,cocoa,오브젝트C,Objective C)
metatag-description=(오브젝트 C 언어 설명)
}}
===... * {{:language:obj-c_ing_.pdf|다른 요약 문서}}
====== Objective C ======
* C 언어 기반의 확장판 언어. 즉, C 언어의 기본 라이브... 들에 대한 프로젝트 위저드도 있는데, 이건 따로 설치해야 하는 것 같다.
======= Objective C 시작 ======
ObjC 에서는 함수 호출이라고 부르지 않고, 메시지 전송이...
======== The id type ========
<code objc>
id anObject;
</code>
id 라는 키워드가 존재하고, 모든 오브젝트를 가리키는 대명사로 사용
enpick-1.jpg|}}
====== 사용할 변수 ======
* didPickObject : 게임오브젝트가 선택 되었는가?
* pickedGameObject : 선택한 게임 오브젝트 저장
* mouseX, mouseY : 마우스가 클릭된 화면상의 위치
* isDebu... ty:playmaker:pm-screenpick-3.jpg|}}
====== 'checkObject' state ======
- Screen Pick : 전제 조건이 있어서 헤매는 부... *가 설정되지 않으면, 오브젝트를 얻어오지 않았다.</color>
* didPickObject와 pickedGameObject 에 확인된 오브젝트를 저장한다.
- Game Obje
tation/ScriptReference/index.Accessing_Other_Game_Objects.html|Overview: Accessing Other Game Objects]]
===== 다른 게임 오브젝트의 컴포넌트나 스크립트 사용 =====
<code csharp>
publ... xample : MonoBehaviour {
void Start() {
GameObject go = GameObject.Find("SomeGuy");
go.GetComponent<OtherScript>().DoSomething();
GameObject player