Exemplo n.º 1
0
 public void SetUp(Transform origin, CentralNervousSystem sender, Transform target, Attack a)
 {
     gameObject.layer = origin.gameObject.layer + 1;
     attack           = a;
     this.origin      = origin;
     this.target      = target;
     attack.sender    = sender;
 }
Exemplo n.º 2
0
 public void Awake()
 {
     prush     = this;
     hans      = (Transform)GameObject.FindGameObjectWithTag("Player").transform;
     hansCNS   = hans.GetComponent <CentralNervousSystem> ();
     hansBrain = hans.GetComponent <HumanInput> ();
     prushPlatform.gameObject.SetActive(false);
 }
Exemplo n.º 3
0
    public IEnumerator VAMPIRIC(CentralNervousSystem sender, float effectValue, float effectTime)
    {
        float count = 0;

        //cns.PostMessage ("Vampiric Effect!", Color.magenta);
        while (count <= (int)effectTime)
        {
            yield return(new WaitForSeconds(1.0f));

            cns.ChangeHealth((int)-effectValue, Color.magenta);
            sender.ChangeHealth((int)effectValue, Color.magenta);
            count++;
        }
    }
Exemplo n.º 4
0
 public void Awake()
 {
     cns = GetComponent <CentralNervousSystem> ();
 }
Exemplo n.º 5
0
 public void Awake()
 {
     humanInput = this;
     cns        = gameObject.GetComponent <CentralNervousSystem> ();
 }
Exemplo n.º 6
0
 // Use this for initialization
 public void SetUp(CentralNervousSystem central)
 {
     cns                   = central;
     colorWeakness         = central.colorWeakness;
     colorDamageMultiplier = central.colorDamageMultiplier;
 }
Exemplo n.º 7
0
 void Awake()
 {
     rigi = GetComponent <Rigidbody2D> ();
     cns  = GetComponent <CentralNervousSystem> ();
 }
Exemplo n.º 8
0
 public void SetUp(CentralNervousSystem central)
 {
     cns = central;
 }
Exemplo n.º 9
0
 public void Awake()
 {
     cns = gameObject.GetComponent <CentralNervousSystem> ();
     r   = gameObject.GetComponent <SpriteRenderer> ();
     ri  = gameObject.GetComponent <RigidbodyInterface> ();
 }