예제 #1
0
 private void Start()
 {
     playerTf       = GameObject.FindWithTag(Tags.Player).transform;
     rigidBody      = GetComponent <Rigidbody2D>();
     watchingCamera = GameObject.FindWithTag(Tags.MainCamera).GetComponent <Camera>();
     roomDetector   = GetComponent <RoomDetector>();
 }
예제 #2
0
파일: Player.cs 프로젝트: lshwayne96/5ive
 private void Start()
 {
     rigidBody    = GetComponent <Rigidbody2D>();
     mainCamera   = GameObject.FindWithTag(Tags.MainCamera).GetComponent <MainCamera>();
     roomDetector = GetComponent <RoomDetector>();
 }
예제 #3
0
 private void Awake()
 {
     this.m_Character   = GetComponent <PlatformerCharacter2D> ();
     this.room_detector = GetComponent <RoomDetector> ();
     this.move_target   = this.transform.position;
 }