示例#1
0
    void Start()
    {
        this.Skill_list = new List <GameObject>();
        this.Skill_list.Add(OwlPrefab);
        this.Skill_list.Add(AlpacaPrefab);
        this.Skill_list.Add(TurtlePrefab);

        this.Camera_Control    = GameObject.FindGameObjectWithTag("MainCamera").GetComponent <Player_Camera>();
        this.Movespeed_Control = GameObject.FindGameObjectWithTag("Player").GetComponent <Player>();
    }
示例#2
0
 void Awake()
 {
     Instance = this;
 }
 public void AddPlayer(Player_Camera playerScript)
 {
     playerList.Add(playerScript);
 }