예제 #1
0
 // Use this for initialization
 void Start()
 {
     angle = transform.parent.GetComponent <camScript>();
     if (shootpoint == null)
     {
         shootpoint = transform;
     }
 }
예제 #2
0
    // Use this for initialization
    void Start()
    {
        if (screen == null)
        {
            screen = this;
        }
        else
        {
            Destroy(gameObject);
        }

        //myCam = GetComponent<Camera> ();
        if (managerScript.man.playerChar != null)
        {
            Vector3 playerPos = managerScript.man.playerChar.transform.position;
            transform.position = playerPos;
            currentPos         = transform.position;
        }
    }
예제 #3
0
 void Start()
 {
     Cam_script = gameObject.GetComponent <camScript>();
 }