Exemplo n.º 1
0
 // Use this for initialization
 void Start()
 {
     ftr          = GetComponent <FadeToRed> ();
     cfm          = GetComponent <ConstantForwardMotion> ();
     cft          = GetComponent <ConstantFaceTransform> ();
     RedCrosshair = Resources.Load("RedCrosshair") as GameObject;
 }
Exemplo n.º 2
0
 void Start()
 {
     cfm = GetComponent <ConstantForwardMotion> ();
     if (target == null)
     {
         if (GameObject.FindGameObjectWithTag("Player") == null)
         {
             return;
         }
         target = GameObject.FindGameObjectWithTag("Player").transform;
     }
 }
Exemplo n.º 3
0
 void Start()
 {
     cfm = GetComponent <ConstantForwardMotion> ();
 }