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
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 : 간단한 부
</code>
====== JSON 표기 =====
JSON = Javascript Object Notation, 데이터를 표기하는 방법
- 이름과 값을 쌍으로 표시
- 배열
... 같은 역할.
선언하는 예
<code javascript>
var ajax = new Object();
ajax.Request = function() {}
ajax.Request.pr... e>
중첩 선언 가능하다.
<code javascript>
var ajax = new Object();
ajax.part1 = new Object();
ajax.part1.Request = function() {}
ajax.part1.Request.prototype = {
some
===== 간단한 프레임 구성 =====
<code>
DebugWindow : GameObject
DW_Bkgnd : UISlicedSprite 로 배경 이미지를 윈도우 크기만큼 늘... * DW_Title 에
* Box Collider를 추가
* UIDragObject 스크립트를 추가한다.
* UIDragObject 에 드래그 이동을 할 오브젝트를 Target 항목에 설정한다.
* 인스펙터에서 DebugWindow Object를 **UIDragObject**의 **Target** 항목에 추가한다.
실행 결과는, DW_Title을 클릭하면 윈