Ejemplo n.º 1
0
 void Awake()
 {
     theball      = GameObject.Find("Plastic Ball");
     thegerbil    = GameObject.Find("Gerbil");
     ballscript   = theball.GetComponent <PlayerForce> ();
     liscript     = GameObject.Find("EventSystem").GetComponent <LevelInformationScript> ();
     gerbilcenter = new Vector3(-0.27f, 0f, 3f);
 }
Ejemplo n.º 2
0
    void Awake()
    {
        pfscript = GameObject.Find("Plastic Ball").GetComponent <PlayerForce> ();
        if (PlayerPrefs.GetInt("playerforce") >= 1 && PlayerPrefs.GetInt("playerforce") <= 6)
        {
            slider.value = PlayerPrefs.GetInt("playerforce");
        }

        this.gameObject.SetActive(false);
    }
Ejemplo n.º 3
0
 void Awake()
 {
     script   = GameObject.Find("EventSystem").GetComponent <LevelInformationScript> ();
     pfscript = GameObject.Find("Plastic Ball").GetComponent <PlayerForce> ();
     dtext    = GameObject.Find("DeathText");
 }
Ejemplo n.º 4
0
 public void AddForce(Vector3 targetForce, float decay, out PlayerForce pf, bool isImpulse)
 {
     pf = new PlayerForce(targetForce, decay, isImpulse);
     forces.Add(pf);
 }
Ejemplo n.º 5
0
    //public Mesh starmesh;
    //public Material starmaterial;

    // Use this for initialization
    void Start()
    {
        gs = GameObject.Find("Plastic Ball").GetComponent <PlayerForce> ();
        StartCoroutine(SpawnWaves());
    }