// Use this for initialization
 void Start()
 {
     GameObject gmHold = GameObject.Find ("GameManager");
             physMan = gmHold.GetComponent<PhysicsManipulation> ();
             box = gameObject.GetComponent<SpriteRenderer> ();
             originalBackgroundColor = box.color;
 }
Example #2
0
 void Start()
 {
     GameObject gmHold = GameObject.Find ("GameManager");
             physMan = gmHold.GetComponent<PhysicsManipulation> ();
             friction = gmHold.GetComponent<BoxCollider2D> ().sharedMaterial;
             noFriction = gmHold.GetComponent<CircleCollider2D> ().sharedMaterial;
             startingPos = gameObject.transform.position;
 }
 void Awake()
 {
     // Setting up references.
             groundCheck = transform.Find ("GroundCheck");
             ceilingCheck = transform.Find ("CeilingCheck");
             GameObject gmHold = GameObject.Find ("GameManager");
             physMan = gmHold.GetComponent<PhysicsManipulation> ();
             whatIsGround = LayerMask.GetMask ("Ground");
 }
Example #4
0
 public void TurnOnForwardClip()
 {
     sounds = GetComponents<AudioSource> ();
             forward = sounds [0];
             backward = sounds [1];
             physMan = GameObject.Find ("GameManager").GetComponent<PhysicsManipulation> ();
             lengthOfClip = forward.clip.length;
             float currectTimeBackward = backward.time;
             float getTimeToStartForwardClip = lengthOfClip - currectTimeBackward;
             forward.time = getTimeToStartForwardClip;
             backward.Stop ();
             forward.Play ();
 }
 // Use this for initialization
 void Start()
 {
     GameObject gmHold = GameObject.Find ("GameManager");
             physMan = gmHold.GetComponent<PhysicsManipulation> ();
             timeKey = GameObject.Find ("Key").GetComponent<TimeReversalHandlerKey> ();
 }
Example #6
0
 // Use this for initialization
 void Start()
 {
     GameObject gmHold = GameObject.Find ("GameManager");
             physMan = gmHold.GetComponent<PhysicsManipulation> ();
             textStyle.normal.textColor = Color.black;
 }
Example #7
0
 void Awake()
 {
     GameObject gmHold = GameObject.Find ("GameManager");
             physMan = gmHold.GetComponent<PhysicsManipulation> ();
             character = GetComponent<PlatformerCharacter2D> ();
 }
 // Use this for initialization
 void Start()
 {
     GameObject gmHold = GameObject.Find ("GameManager");
             physMan = gmHold.GetComponent<PhysicsManipulation> ();
 }