Example #1
0
 void Start()
 {
     traceEntity        = transform.parent.gameObject;
     transform.position = transform.parent.position;
     timeControllScript = traceEntity.GetComponent <ITimeControll>();
     StartCoroutine(LateStart(2));
 }
Example #2
0
 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;
 }
Example #3
0
 void Awake()
 {
     controller   = GetComponent <IController2D>();
     timeControll = GetComponent <ITimeControll>();
 }