Esempio n. 1
0
    // GameObject TriggeredTag = this.transform.parent.parent.gameObject;
    public void Activate()
    {
        PVE = this.transform.parent.parent.GetComponent <PieceEventManager>();

        switch (type)
        {
        case "B":
            AssemblyMaster.PreviousEvent(PVE);

            break;

        case "P":
            AssemblyMaster.PlayEvent(PVE);

            break;

        case "F":
            AssemblyMaster.NextEvent(PVE);

            break;
        }
    }
Esempio n. 2
0
 void Update()
 {
     if (Input.GetKeyDown("q"))
     {
         AssemblyMaster.PreviousEvent(AssemblyMaster.PieceEventManagers[AssemblyMaster.ManagersIndex]);
     }
     if (Input.GetKeyDown("w"))
     {
         AssemblyMaster.PlayEvent(AssemblyMaster.PieceEventManagers[AssemblyMaster.ManagersIndex]);
     }
     if (Input.GetKeyDown("e"))
     {
         AssemblyMaster.NextEvent(AssemblyMaster.PieceEventManagers[AssemblyMaster.ManagersIndex]);
     }
     if (Input.GetKeyDown("r"))
     {
     }
     if (Input.GetKeyDown("t"))
     {
     }
     if (Input.GetKeyDown("y"))
     {
     }
 }