Пример #1
0
    // Start is called before the first frame update
    void Start()
    {
        mpd   = GetComponent <MousePositionDetector>();
        stats = GetComponent <StatBlock>();
        PlayerClass pc = GetComponent <PlayerClass>();

        abil          = pc.abilities.Set[AbilName];
        projectile    = abil.Prefab;
        abilStats     = abil.Stats;
        abil.cdRemain = 0f;
        UpdateStats();
    }
 private void Awake()
 {
     mpd   = GetComponent <MousePositionDetector>();
     stats = GetComponent <StatBlock>();
 }
Пример #3
0
 private void Awake()
 {
     mousePositionDetector = GetComponent <MousePositionDetector>();
 }