Esempio n. 1
0
 private void Update()
 {
     if (skillData.isOnReady() && Input.GetMouseButton(MouseClick[LeftClick]))
     {
         skillData.activateSkill();
         playerWeapon.setWeaponDisabled(true);
         solarShieldOnActive = Instantiate(solarShield, transform.position, Quaternion.identity).GetComponent <Player_Skill_SolarShieldObject>();
         isShieldOnActive    = true;
     }
 }
Esempio n. 2
0
    void Start()
    {
        sprite            = GetComponent <SpriteRenderer>();
        solorShieldParent = transform.parent.GetComponent <Player_Skill_SolarShieldObject>();

        Color temp = sprite.color;

        temp.a       = appearingStartAlpha;
        sprite.color = temp;

        transform.localScale = appearingStartScale;
    }