Example #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;
 }
Example #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);
 }
Example #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++;
        }
    }
Example #4
0
 public void Awake()
 {
     cns = GetComponent <CentralNervousSystem> ();
 }
Example #5
0
 public void Awake()
 {
     humanInput = this;
     cns        = gameObject.GetComponent <CentralNervousSystem> ();
 }
Example #6
0
 // Use this for initialization
 public void SetUp(CentralNervousSystem central)
 {
     cns                   = central;
     colorWeakness         = central.colorWeakness;
     colorDamageMultiplier = central.colorDamageMultiplier;
 }
Example #7
0
 void Awake()
 {
     rigi = GetComponent <Rigidbody2D> ();
     cns  = GetComponent <CentralNervousSystem> ();
 }
Example #8
0
 public void SetUp(CentralNervousSystem central)
 {
     cns = central;
 }
Example #9
0
 public void Awake()
 {
     cns = gameObject.GetComponent <CentralNervousSystem> ();
     r   = gameObject.GetComponent <SpriteRenderer> ();
     ri  = gameObject.GetComponent <RigidbodyInterface> ();
 }