Exemple #1
0
    //public float csize = 10.0f;
    //public float csizen;
    //public float num;
    //public Vector3 nums;
    //private bool ye = false;
    //private Interact aaa;
    //public Vector3 offsets;
    //public Vector3 offsetsed;


    // Use this for initialization
    void Start()
    {
        gm       = GameObject.FindGameObjectWithTag("GameMaster").GetComponent <GameMaster>();
        came     = GameObject.FindGameObjectWithTag("MainCamera").GetComponent <Camera>();
        camefol  = GameObject.FindGameObjectWithTag("MainCamera").GetComponent <basiccamfollow>();
        whex     = this.transform.position.x;
        indicate = this.GetComponent <LineRenderer> ();
        thicc    = this.GetComponent <SpriteRenderer> ().bounds.extents.x;
        //aaa = transform.parent.GetComponent<Interact>();
        //csize = this.GetComponent<CameraSize> ();
    }
Exemple #2
0
 // Use this for initialization
 void Start()
 {
     cam    = GameObject.FindGameObjectWithTag("MainCamera").GetComponent <Camera>();
     camfol = GameObject.FindGameObjectWithTag("MainCamera").GetComponent <basiccamfollow>();
     ppp    = GameObject.FindGameObjectWithTag("Player");
 }