private void Awake() { characterBase = GetComponent <Character_Base>(); selectedGameObject = transform.Find("Selected").gameObject; movePosition = GetComponent <IMovePosition>(); SetSelectedVisible(false); state = State.Normal; }
void Start() { startingPosition = transform.position; roamingPosition = GetRoamingPosition(); Debug.Log("Roaming position: " + roamingPosition); movePosition = gameObject.GetComponent <IMovePosition>(); gameObject.GetComponent <IMovePosition>().OnPositionReached += OnPositionReachedEventHandler; movePosition.SetMovePosition(roamingPosition); }
private void Awake() { iMovePosition = GetComponent <IMovePosition>(); }
private void Start() { _playerTransform = GameObject.FindGameObjectWithTag(_playerTag)?.transform; _movePosition = GetComponent <IMovePosition>(); }
// Start is called before the first frame update private void Awake() { selectedGameObject = transform.Find("Selected").gameObject; movePosition = GetComponent <IMovePosition>(); SetSeletedVisible(false); }
///////////////////////////////////// /// PUBLIC PROPERTIES /////////////// ///////////////////////////////////// ///////////////////////////////////// /// PUBLIC METHODS ////////////////// ///////////////////////////////////// ////////////////////////////////////// /// PRIVATE METHODS AND PROPERTIES /// ////////////////////////////////////// private void Start() { self = GetComponent <Entity>(); attack = GetComponent <Attack>(); movePosition = GetComponent <IMovePosition>(); }