コード例 #1
0
 private void Awake()
 {
     characterBase      = GetComponent <Character_Base>();
     selectedGameObject = transform.Find("Selected").gameObject;
     movePosition       = GetComponent <IMovePosition>();
     SetSelectedVisible(false);
     state = State.Normal;
 }
コード例 #2
0
 void Start()
 {
     startingPosition = transform.position;
     roamingPosition  = GetRoamingPosition();
     Debug.Log("Roaming position: " + roamingPosition);
     movePosition = gameObject.GetComponent <IMovePosition>();
     gameObject.GetComponent <IMovePosition>().OnPositionReached += OnPositionReachedEventHandler;
     movePosition.SetMovePosition(roamingPosition);
 }
コード例 #3
0
 private void Awake()
 {
     iMovePosition = GetComponent <IMovePosition>();
 }
コード例 #4
0
 private void Start()
 {
     _playerTransform = GameObject.FindGameObjectWithTag(_playerTag)?.transform;
     _movePosition    = GetComponent <IMovePosition>();
 }
コード例 #5
0
 // Start is called before the first frame update
 private void Awake()
 {
     selectedGameObject = transform.Find("Selected").gameObject;
     movePosition       = GetComponent <IMovePosition>();
     SetSeletedVisible(false);
 }
コード例 #6
0
ファイル: EnemyAIBase.cs プロジェクト: tesolberg/phalanx
    /////////////////////////////////////
    /// PUBLIC PROPERTIES ///////////////
    /////////////////////////////////////


    /////////////////////////////////////
    /// PUBLIC METHODS //////////////////
    /////////////////////////////////////


    //////////////////////////////////////
    /// PRIVATE METHODS AND PROPERTIES ///
    //////////////////////////////////////

    private void Start()
    {
        self         = GetComponent <Entity>();
        attack       = GetComponent <Attack>();
        movePosition = GetComponent <IMovePosition>();
    }