// 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; }
// Use this for initialization void Start() { bio = GetComponent<LifeActivity>(); sirch = GetComponent<Sirching>(); mooving = GetComponent<MoveForward>(); }