private void Start() { playerTf = GameObject.FindWithTag(Tags.Player).transform; rigidBody = GetComponent <Rigidbody2D>(); watchingCamera = GameObject.FindWithTag(Tags.MainCamera).GetComponent <Camera>(); roomDetector = GetComponent <RoomDetector>(); }
private void Start() { rigidBody = GetComponent <Rigidbody2D>(); mainCamera = GameObject.FindWithTag(Tags.MainCamera).GetComponent <MainCamera>(); roomDetector = GetComponent <RoomDetector>(); }
private void Awake() { this.m_Character = GetComponent <PlatformerCharacter2D> (); this.room_detector = GetComponent <RoomDetector> (); this.move_target = this.transform.position; }