コード例 #1
0
ファイル: LifeActivity.cs プロジェクト: TixerInc/Evol
 // Use this for initialization
 void Start()
 {
     graveyard = GameObject.Find("Graveyard");
     //rig = GetComponent<Rigidbody2D>();
     sur = GetComponent<Surviving>();
     sirch = GetComponent<Sirching>();
     mooving = GetComponent<MoveForward>();
     Decreser = mooving.maxSpeed / 2;
     tired = true;
 }
コード例 #2
0
ファイル: Sirching.cs プロジェクト: TixerInc/Evol
 // Use this for initialization
 void Start()
 {
     surv = GetComponent<Surviving>();
     mooving = GetComponent<MoveForward>();
   //  foodSpawner = GameObject.Find("FoodSpawner").transform;
 }