Example #1
0
    void Start()
    {
        Speed      = 8f;
        Layer      = LayerMask.GetMask("Floor");
        CameraType = Score.MyType;

        if (CameraType == Score.CameraType.FPS)
        {
            FPS            = Camera.main.GetComponent <Camera>();
            Cursor.visible = false;
        }
    }
Example #2
0
 void Awake()
 {
     Target       = GameObject.FindGameObjectWithTag("Player").GetComponent <Transform>();
     SelectedType = Score.MyType;
 }