Ejemplo n.º 1
0
	void Start () {
		cameraMoveScript = Cam.GetComponent<CameraMoveScript> ();
		deathScript = Turtle.GetComponent<DeathScript> ();
		rotatesemi = Turtle.GetComponent<rotateSemi> ();
		setsortingLayer = ShaderCube.GetComponent<setSortingLayer> ();
		turtleMovementScript = Turtle.GetComponent<TurtleMovementScript> ();
	}
Ejemplo n.º 2
0
	// Use this for initialization
	void Start () {
		StartVector = gameObject.transform.position;//sets the startVector to the starting position of the Turtle
		TurtleBody = GetComponent<Rigidbody2D> ();
		TurtleMoveScr = GetComponent<TurtleMovementScript> ();
		setSortLayer = ShaderCube.GetComponent<setSortingLayer> ();

	}
Ejemplo n.º 3
0
 // Use this for initialization
 void Start()
 {
     StartVector   = gameObject.transform.position;      //sets the startVector to the starting position of the Turtle
     TurtleBody    = GetComponent <Rigidbody2D> ();
     TurtleMoveScr = GetComponent <TurtleMovementScript> ();
     setSortLayer  = ShaderCube.GetComponent <setSortingLayer> ();
 }
Ejemplo n.º 4
0
 void Start()
 {
     cameraMoveScript     = Cam.GetComponent <CameraMoveScript> ();
     deathScript          = Turtle.GetComponent <DeathScript> ();
     rotatesemi           = Turtle.GetComponent <rotateSemi> ();
     setsortingLayer      = ShaderCube.GetComponent <setSortingLayer> ();
     turtleMovementScript = Turtle.GetComponent <TurtleMovementScript> ();
 }