Пример #1
0
	// Use this for initialization
	void Start () {
		if (isBear) {
			TaiwanBearScript = rabbit.GetComponent<TaiwanBearAI> ();
		} else {
			rabbitScript = rabbit.GetComponent<rabbitMove> ();
		}
	}
Пример #2
0
	//public GameObject thisEnemy;

	//private weaponScript[] weapons;
	
	void Awake()
	{
		// Retrieve the weapon only once
		//weapons = GetComponentsInChildren<weaponScript>();
		// Retrieve scripts to disable when not spawn
		MoveScript = GetComponent<moveScript>();
		rabbitMoveScript = GetComponent<rabbitMove> ();
	}