public void activatePlayer()
    {
        UpperHandle upperHandle = GameObject.Find("Panto").GetComponent <UpperHandle>();

        StartCoroutine(upperHandle.SwitchTo(gameObject, 0.2f));
        upperHandle.FreeRotation();
    }
        void Start()
        {
            upperHandle = GetComponent <UpperHandle>();
            lowerHandle = GetComponent <LowerHandle>();
            lineDraw    = GameObject.Find("Panto").GetComponent <LineDraw>();
            Debug.Log("Before Introduction");
            speechIn.StartListening(keywords.Keys.ToArray());


            level1 = GameObject.Find("Level1");
            level1.SetActive(false);

            level2 = GameObject.Find("Level2");
            level2.SetActive(false);

            level4 = GameObject.Find("Level4");
            level4.SetActive(false);

            RegisterColliders();
            if (levelMode)
            {
                Debug.Log(levelMode);
                Levels();
            }
            else
            {
                lineDraw.canDraw = true;
            }
        }
Exemple #3
0
 // Start is called before the first frame update
 void Start()
 {
     upperHandle   = GameObject.Find("Panto").GetComponent <UpperHandle>();
     lowerHandle   = GameObject.Find("Panto").GetComponent <LowerHandle>();
     upperRotation = upperHandle.GetRotation();
     gameManager   = GameObject.Find("Panto").GetComponent <GameManager>();
     audio         = GameObject.Find("Panto").GetComponent <Audio>();
 }
    void Start()
    {
        _upperHandle = GetComponent <UpperHandle>();
        _lowerHandle = GetComponent <LowerHandle>();

        uiManager.UpdateUI(_playerScore, _enemyScore);

        Introduction();
    }
Exemple #5
0
 public void RegisterUpperHandle(UpperHandle newHandle)
 {
     upperHandle = newHandle;
 }