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); }
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); }
void Awake() { script = GameObject.Find("EventSystem").GetComponent <LevelInformationScript> (); pfscript = GameObject.Find("Plastic Ball").GetComponent <PlayerForce> (); dtext = GameObject.Find("DeathText"); }
public void AddForce(Vector3 targetForce, float decay, out PlayerForce pf, bool isImpulse) { pf = new PlayerForce(targetForce, decay, isImpulse); forces.Add(pf); }
//public Mesh starmesh; //public Material starmaterial; // Use this for initialization void Start() { gs = GameObject.Find("Plastic Ball").GetComponent <PlayerForce> (); StartCoroutine(SpawnWaves()); }