void Start() { isAnimating = true; changeTexture = true; ollyState = ollyAnimationStates.olly_idle1; ollyPrevState = ollyState; camera = GameObject.Find("Camera"); gameController = camera.GetComponent <PG_GameController>(); if (shapesRefrence != null) { soundManager = shapesRefrence.GetComponent <PG_SoundManager>(); } }
// Use this for initialization void Start() { standingShapeTiltAngle = 5F; referent_shapeWithHint = GameObject.FindGameObjectWithTag("pg_referent_shapeWithHint"); olly = GameObject.Find("pg_olly"); icky = GameObject.FindGameObjectWithTag("pg_icky"); referent_bubble = GameObject.FindGameObjectWithTag("pg_referent_bubble"); referent_shape = GameObject.FindGameObjectWithTag("pg_referent_shape"); referent_hint = GameObject.FindGameObjectWithTag("pg_referent_hint"); camera = GameObject.Find("Camera"); ollyParent = GameObject.Find("OllyReferentContainer"); shapeShadow = GameObject.Find("shape_shadow"); // ---- Get game controller script on Main Camera gameController = camera.GetComponent <PG_GameController>(); if (olly != null) { ollyAnimationsSR = olly.GetComponent <PG_OllyAnimations>(); } camera = GameObject.Find("Camera"); gameController = camera.GetComponent <PG_GameController>(); }
void Start() { isAnimating = true; changeTexture = true; ollyState = ollyAnimationStates.olly_idle1; ollyPrevState = ollyState; camera = GameObject.Find("Camera"); gameController = camera.GetComponent<PG_GameController>(); if(shapesRefrence!=null) soundManager = shapesRefrence.GetComponent<PG_SoundManager>(); }
// Use this for initialization void Start() { standingShapeTiltAngle = 5F; referent_shapeWithHint = GameObject.FindGameObjectWithTag("pg_referent_shapeWithHint"); olly = GameObject.Find("pg_olly"); icky = GameObject.FindGameObjectWithTag("pg_icky"); referent_bubble = GameObject.FindGameObjectWithTag("pg_referent_bubble"); referent_shape = GameObject.FindGameObjectWithTag("pg_referent_shape"); referent_hint = GameObject.FindGameObjectWithTag("pg_referent_hint"); camera = GameObject.Find("Camera"); ollyParent = GameObject.Find("OllyReferentContainer"); shapeShadow = GameObject.Find("shape_shadow"); // ---- Get game controller script on Main Camera gameController = camera.GetComponent<PG_GameController>(); if(olly!=null) ollyAnimationsSR = olly.GetComponent<PG_OllyAnimations>(); camera = GameObject.Find("Camera"); gameController = camera.GetComponent<PG_GameController>(); }