void Start() { tLoadQuitGameScript = GameObject.Find("Main Camera").GetComponent<LoadQuitGame>(); float fPerimeter = (2.0f * Mathf.PI) * (transform.localScale.x * transform.parent.localScale.x); fAnglePerSecond = fRotationSpeed / fPerimeter; fAnglePerSecond *= 360.0f; }
void Start() { tLoadQuitGameScript = GameObject.Find("Main Camera").GetComponent<LoadQuitGame>(); tBottomPos = transform.FindChild("Bottom"); }
void Awake() { pPlayerObject = transform.parent.gameObject; tLoadQuitGameScript = GameObject.Find("Main Camera").GetComponent<LoadQuitGame>(); }