Ejemplo n.º 1
0
    public bool powerUpReset;                 // used to reset the powerup durations

    void Start()
    {
        // assigning the players/platform generators start position
        platformStartPoint = platformGenerator.position;
        playerStartPoint   = thePlayer.transform.position;

        // finding the score manager
        theScoreManager   = FindObjectOfType <ScoreManager>();
        thePowerUpManager = FindObjectOfType <powerUpManager>();

        //GameAnalytics.Initialize ();
        //GameAnalytics.NewDesignEvent ("Game Loaded");
    }
Ejemplo n.º 2
0
 private void Start()
 {
     manager = GameObject.Find("PowerUpManager").GetComponent <powerUpManager>();
 }
Ejemplo n.º 3
0
 // Start is called before the first frame update
 void Start()
 {
     thepowerupManager = FindObjectOfType <powerUpManager>();
 }
Ejemplo n.º 4
0
    public Color[] myColours;             // list of colours to change to depending on the powerup

    void Start()
    {
        myPowerManager = FindObjectOfType <powerUpManager>();
    }
Ejemplo n.º 5
0
 // Use this for initialization
 void Awake()
 {
     Instance = this;
 }