private float fRotateSpeed = 1000f; // 유닛 회전 속도 //private Vector3 vhpmpbar; // Use this for initialization void Start() { //vhpmpbar = new Vector3(0, -5f, 0); //vhpmpbar.y = -5f; control = GetComponent <CharacterController>(); im = ingamemanager.Call(); im.movetarget.gameObject.SetActive(false); // movetarget 안보이게 초기 값 ani = GetComponentInChildren <Animator>(); }
// Use this for initialization void Start() { im = ingamemanager.Call(); }
// Use this for initialization void Start() { ain = GetComponentInChildren <Animation>(); im = ingamemanager.Call(); dietimer = 10f; // 초기 값 }
} // Awake 가장 먼저 instance 나자신을 넣는다 void onDestroy() { instance = null; } // 다시 null로 초기화
} // .instance 으로 쓸수 있지만 .Call 으로 쓰기 위해 사용 void Awake() { instance = this; } // Awake 가장 먼저 instance 나자신을 넣는다
public int monsternum; // 몬스터 순번 // Use this for initialization void Start() { im = ingamemanager.Call(); ani = GetComponentInChildren <Animator>(); }