Exemplo n.º 1
0
 private void Awake()
 {
     controller   = GetComponent <Controller2D>();
     movingObject = GetComponent <MovingObject>();
     movingObject.AssignConfiguration(config);
     movingObject.CalculateMovementVariables();
 }
Exemplo n.º 2
0
 private void Awake()
 {
     Instance          = this;
     characterAnimator = GetComponent <CharacterAnimator>();
     controller        = GetComponent <Controller2D>();
     movingObject      = GetComponent <MovingObject>();
     movingObject.AssignConfiguration(config);
     movingObject.CalculateMovementVariables();
 }