void Start () { if (null == Instance) { Instance = this; } else { Debug.LogError ("Do not create more than 1 BossPawn"); } }
protected virtual void Awake() { if (InstanceBoss == null) { InstanceBoss = FindObjectOfType <BossPawn>(); } if (_fightTheme == null) { _fightTheme = gameObject.GetComponent <AudioSource>(); } Time.timeScale = 1f; }