Ejemplo n.º 1
0
    private void Awake()
    {
        controllerEnemy = new ControllerStateEnemy();
        rb = GetComponent <Rigidbody2D>();
        controllerMovement = GetComponent <CharacterController2Dv2>();

        currentHp = maxHp;
    }
Ejemplo n.º 2
0
 private void Start()
 {
     player = GetComponentInParent <Player>();
     characterController = GetComponentInParent <CharacterController2Dv2>();
 }