Exemplo n.º 1
0
    void Protector(Collider col)
    {
        Creature C = col.gameObject.GetComponent <Creature>();

        if (C != null)
        {
            if (!C.isFriendly && C is IDamageable)
            {
                GameManager.DamageObject(col.gameObject, new Attack(1000f));

                WwizardProtector.SetBeam(C.gameObject);
            }
        }
    }
Exemplo n.º 2
0
 void Start()
 {
     instance = this;
     PS       = transform.Find("EnemyDestroyer").GetComponent <ParticleSystem>();
     Target   = transform.Find("Target").gameObject;
 }