void Start ()
	{
		if (null == Instance)
		{
			Instance = this;
		} else
		{
			Debug.LogError ("Do not create more than 1 BossPawn");
		}
	}
Exemplo n.º 2
0
    protected virtual void Awake()
    {
        if (InstanceBoss == null)
        {
            InstanceBoss = FindObjectOfType <BossPawn>();
        }

        if (_fightTheme == null)
        {
            _fightTheme = gameObject.GetComponent <AudioSource>();
        }

        Time.timeScale = 1f;
    }