Ejemplo n.º 1
0
    public Transform fireballSpawn;     //The object from which the fireball spawns.



    void Awake()
    {
        player             = GameObject.FindGameObjectWithTag("Player");
        aimingHand         = GameObject.FindGameObjectWithTag("aimingHand");
        castingHand        = GameObject.FindGameObjectWithTag("castingHand");
        hi5HandInteraction = castingHand.GetComponent <Hi5HandInteraction>();         //Don't need to specify if its on the same object
    }
Ejemplo n.º 2
0
    //Teleport Components
//	public Transform cameraRigTransform;
//	public GameObject teleportReticlePrefab;
//	private GameObject reticle;
//	private Transform teleportReticleTransform;
//	public Transform headTransform;
//	public Vector3 teleportReticleOffset;
//	public LayerMask teleportMask;
//	private bool shouldTeleport;

    void Awake()
    {
        aimer              = GameObject.FindGameObjectWithTag("aimingHand"); //want to create an object for which the aiming is controlled
        castingHand        = GameObject.FindGameObjectWithTag("castingHand");
        hi5HandInteraction = castingHand.GetComponent <Hi5HandInteraction> ();
        //aimingInteraction = aimingHand.GetComponent <Hi5HandInteraction> ();
    }