Ejemplo n.º 1
0
    // Use this for initialization
    void Awake()
    {
        planet = GameObject.FindGameObjectWithTag(Tags.planet);
        player = GameObject.FindGameObjectWithTag(Tags.player);

        gatherInput = GetComponent <GatherInput>();
        spin        = GetComponent <PlanetSpin>();

        spaceStats        = GameObject.FindGameObjectWithTag(Tags.space).GetComponent <SpaceStats>();
        defaultSpaceSpeed = spaceStats.scrollSpeed;

        respawnPosition = GameObject.FindGameObjectWithTag(Tags.player).transform.position;
        respawnRotation = GameObject.FindGameObjectWithTag(Tags.player).transform.rotation;
    }
Ejemplo n.º 2
0
 // Use this for initialization
 void Start()
 {
     spaceStats = transform.parent.gameObject.GetComponent <SpaceStats>();
     StartCoroutine(Scroll());
 }