Beispiel #1
0
    private void GoBack()
    {
        PointAndClick.selectedObject      = destination;
        PointAndClick.selectedObject.name = "road";
        PointAndClick pnc = GameObject.Find("GameManager").GetComponent <PointAndClick>();

        //pnc.MoveCharacter();
        // PointAndClick pnc = new PointAndClick();
        // pnc.MoveCharacter();
        foreach (ParticleSystem ps in Resources.FindObjectsOfTypeAll(typeof(ParticleSystem)) as ParticleSystem[])
        {
            ParticleSystem.EmissionModule emission = ps.emission;
            emission.enabled = false;
        }
    }
Beispiel #2
0
 // Use this for initialization
 void Awake()
 {
     if (masterClicker != this)
     {
         masterClicker = this;
     }
     canClick = true;
     lookIK = movedChar.GetComponentInChildren<LookIkTarget>();
 }