コード例 #1
0
ファイル: AttackPrefab.cs プロジェクト: GreenTea101/Larry
 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;
 }
コード例 #2
0
ファイル: Prush.cs プロジェクト: GreenTea101/Larry
 public void Awake()
 {
     prush     = this;
     hans      = (Transform)GameObject.FindGameObjectWithTag("Player").transform;
     hansCNS   = hans.GetComponent <CentralNervousSystem> ();
     hansBrain = hans.GetComponent <HumanInput> ();
     prushPlatform.gameObject.SetActive(false);
 }
コード例 #3
0
ファイル: DamageInput.cs プロジェクト: viannone/NewRepo
    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++;
        }
    }
コード例 #4
0
 public void Awake()
 {
     cns = GetComponent <CentralNervousSystem> ();
 }
コード例 #5
0
 public void Awake()
 {
     humanInput = this;
     cns        = gameObject.GetComponent <CentralNervousSystem> ();
 }
コード例 #6
0
ファイル: DamageInput.cs プロジェクト: viannone/NewRepo
 // Use this for initialization
 public void SetUp(CentralNervousSystem central)
 {
     cns                   = central;
     colorWeakness         = central.colorWeakness;
     colorDamageMultiplier = central.colorDamageMultiplier;
 }
コード例 #7
0
 void Awake()
 {
     rigi = GetComponent <Rigidbody2D> ();
     cns  = GetComponent <CentralNervousSystem> ();
 }
コード例 #8
0
 public void SetUp(CentralNervousSystem central)
 {
     cns = central;
 }
コード例 #9
0
ファイル: Sequencer.cs プロジェクト: GreenTea101/Larry
 public void Awake()
 {
     cns = gameObject.GetComponent <CentralNervousSystem> ();
     r   = gameObject.GetComponent <SpriteRenderer> ();
     ri  = gameObject.GetComponent <RigidbodyInterface> ();
 }