void Start() { wolf = (Wolf_LP)GameManager_LP.Instance.wolf; chicken = (Chicken_LP)GameManager_LP.Instance.chicken; cabbage = (Cabbage_LP)GameManager_LP.Instance.cabbage; player = Player_LP.Instance; InvokeRepeating("CheckSuccessAndFailure", 20.0f, 20.0f); }
void Awake() { if (Instance == null) { Instance = this; } else { Destroy(Instance); } }