Example #1
0
    void Start()
    {
        Debug.Log("Starting Player " + this);
        ownership = GameObject.FindObjectOfType <OwnershipMaster>();

        planetPrefab = Resources.Load("Prefabs/planet") as GameObject;
        GameObject startPlanet = GameObject.FindWithTag("StartPlanet");

        ownership.setOwnership(startPlanet, this);
        ownership.setOwnership(gameObject, this);

        color = generateColor();
    }
Example #2
0
 // Use this for initialization
 void Start()
 {
     ownership = GameObject.FindObjectOfType <OwnershipMaster>();
 }