示例#1
0
 // Use this for initialization
 void Start()
 {
     scenemaster = GameObject.FindGameObjectWithTag("sceneMaster");
     psm         = scenemaster.GetComponent <ProjectilesSceneMaster>(); //get the scenemaster for keeping track of the number of shots
 }
示例#2
0
	// Use this for initialization
	void Start () {
        sceneMaster = GameObject.FindGameObjectWithTag("sceneMaster");      //attach the scene master
        projectilemaster = sceneMaster.GetComponent<ProjectilesSceneMaster>();
	}