示例#1
0
    // Use this for initialization
    void Start()
    {
        tutorial = GameObject.FindGameObjectWithTag("MainCamera").GetComponent <TutorialAppear>();
        //Set user of skill to enemy(Didn't use same code as player)

        for (int i = 0; i < GetComponent <EnemyVariableManager>().skillList.Count; i++)
        {
            GetComponent <EnemyVariableManager>().skillList[i].GetComponent <SkillEffect>().user = this.gameObject;
        }
    }
 private void Awake()
 {
     tutorial = GameObject.FindGameObjectWithTag("MainCamera").GetComponent <TutorialAppear>();
 }
 public void Awake()
 {
     tutorial        = GameObject.FindGameObjectWithTag("MainCamera").GetComponent <TutorialAppear>();
     ArtifactSpawner = artifactSpawnerSingleton.instance.gameObject;
 }