// Use this for initialization void Start() { if (instance == null) { instance = this; } else if (instance != this) { Destroy(gameObject); } currentIndex = 0; if (this.GetComponent <MonsterController>() != null) { thisIsMonsterPlayer = true; } state = MonsterState.Nothing; for (int i = 1; i < a.Length; i++) { if (a[i].Default != null) { a[i].Default.SetActive(true); } if (a[i].Attack != null) { a[i].Attack.SetActive(false); } a[i].WholePrefab.SetActive(false); } }
static void Link() { LevelPrefabLinker.SetAllReferences(); LevelAssetPrefabLinker.SetAllReferences(); AnimationSetter.SetAllAnimations(); }