Пример #1
0
    private void Start()
    {
        player = transform.root.gameObject;

        intentToAction               = player.GetComponent <IntentToAction>();
        initialAttackDisplacement    = player.GetComponent <Collider2D>().bounds.size;
        initialAttackDisplacement.y /= 2;

        statsRPG = player.GetComponent <StatsRPG>();

        LoadWeapon();
        SwitchWeapon();

        animator = activeWeapon.transform.GetChild(0).GetComponent <Animator>();
    }
Пример #2
0
 void Start()
 {
     //playerControls.Gameplay.Enable();
     intentToAction = GetComponent <IntentToAction>();
 }