void Start() { traceEntity = transform.parent.gameObject; transform.position = transform.parent.position; timeControllScript = traceEntity.GetComponent <ITimeControll>(); StartCoroutine(LateStart(2)); }
void Awake() { controller = GetComponent <IController2D>(); stateMachine = GetComponent <ITerrainState>(); attack = GetComponent <IAttack>(); dash = GetComponent <IDash>(); jump = GetComponent <IJump>(); move = GetComponent <IMovement>(); timeControll = GetComponent <ITimeControll>(); lockedShooting = false; }
void Awake() { controller = GetComponent <IController2D>(); timeControll = GetComponent <ITimeControll>(); }