// Use this for initialization void Start() { input = GetComponent <i_Player_Input>(); motor = GetComponent <i_Human_Motor>(); humans = GameObject.FindGameObjectsWithTag(scr_Tags.Human); cameraOffset = _Camera.transform.position - this.transform.position; }
void Start() { motor = GetComponent <i_Human_Motor>(); stats = GetComponent <scr_Stats>(); pathToTarget = GetPath(); timeToNextRandom = Random.Range(_MinRandomRotationTime, _MaxRandomRotationTime); _Model.transform.LookAt(_Model.transform.position + scr_Tilemap.Get.DirectionToVector(GetRandomDirection())); }