Inheritance: MonoBehaviour
 void Start()
 {
     controller = SceneHelpers.FindObjectOfType <GvrControllerVisualManager>(true);
     Assert.IsNotNull(controller);
     teleport = SceneHelpers.FindObjectOfType <TeleportController>(true);
     Assert.IsNotNull(teleport);
 }
示例#2
0
    void Awake()
    {
        teleport = GameObject.Find("TeleportController").GetComponent <TeleportController>();
        sight    = GameObject.FindGameObjectWithTag("Player").GetComponent <PlayerSight>();

        GameObject.FindGameObjectWithTag("GameController").GetComponent <GameController>().onGameRestart += Start;
    }
示例#3
0
 void Awake()
 {
     input         = GetComponent <OGoInput>();
     gun           = GetComponentInChildren <Gun>();
     gunPrevParent = gun.transform.parent;
     tpController  = GetComponent <TeleportController>();
     Debug.Log(tpController);
 }
示例#4
0
 void Awake()
 {
     gun   = GetComponentInChildren <Gun>();
     input = GetComponent <IInput>();
     if (input == null)
     {
         Debug.Log("no input found");
     }
     tc = GetComponent <TeleportController>();
 }
示例#5
0
 public void SetCurrentPoint(TeleportController Point)
 {
     if (_currentPoint != null)
     {
         _oldPoint = _currentPoint;
         _oldPoint.gameObject.SetActive(true);
         _oldPoint.RestoreValues();
     }
     _currentPoint = Point;
 }
示例#6
0
 private static void OnTick(EventArgs args)
 {
     ShopController.Tick();
     PhaseController.Tick();
     LaneController.Tick();
     GankController.Tick();
     TeleportController.Tick();
     MovementController.Tick();
     WardController.Tick();
     RecallController.Tick();
 }
示例#7
0
    // Use this for initialization
    void Start()
    {
        ButtonMaju.SetActive(true);
        TC   = GameObject.Find("GameManager").GetComponent <TileController> ();
        DC   = GameObject.Find("GameManager").GetComponent <DiceController> ();
        QG   = GameObject.Find("GameManager").GetComponent <QuizGenerator> ();
        AC   = GameObject.Find("AudioManager").GetComponent <SoundController> ();
        Tele = GameObject.Find("GameManager").GetComponent <TeleportController> ();
        RollButton.onClick.AddListener(getDiceRoll);

        theDice = GameObject.Find("Dice").GetComponent <Animator> ();
    }
示例#8
0
    // Use this for initialization
    void Start()
    {
        rigidbody2D       = GetComponent <Rigidbody2D>();
        builderScript     = GetComponent <PlayerBuilder>();
        buildingPlacement = builderScript.GetBuildingPlacement();
        var gameStatusCanvas = transform.Find("GameStatusText");

        gameStatusText = gameStatusCanvas.Find("Text").gameObject.GetComponent <Text>();
        EnablePlayer();
        GameBoard.Playerlist.Add(gameObject);
        playerBuilder      = GetComponent <playerBuilder>();
        teleportController = GetComponent <TeleportController>();
    }
        /// <summary>
        /// Unity method that runs at the beginning of the execution.
        /// </summary>
        void Start()
        {
            bool mimicsRes = false;

            controller = SceneHelpers.FindObjectOfType <GvrTrackedController>(true);
            Assert.IsNotNull(controller);
            teleport = SceneHelpers.FindObjectOfType <TeleportController>(true);
            Assert.IsNotNull(teleport);
            pointer = controller.GetComponentInChildren <ObjectManipulationPointer>(true);
            Assert.IsNotNull(pointer);
            mimicsRes = FindObjectsOfType <MainCameraMimic>().UpdateMainCameraRef();
            Assert.IsTrue(mimicsRes);
        }
示例#10
0
    public void OnTriggerEnter2D(Collider2D whoHitMe)
    {
        Character c = whoHitMe.GetComponent <Character> ();

        if (c == null)
        {
            return;
        }

        if (Active)
        {
            return;
        }

        TeleportController target = Teleports [TeleportsTo];

        target.Active = true;
        whoHitMe.transform.position = target.GetSpawnPos();         //target.transform.position;
    }
示例#11
0
	void Awake () {
		teleport = GameObject.Find("TeleportController").GetComponent<TeleportController>();
		sight = GameObject.FindGameObjectWithTag("Player").GetComponent<PlayerSight>();
	
		GameObject.FindGameObjectWithTag("GameController").GetComponent<GameController>().onGameRestart += Start;
	}
 void Awake()
 {
     controller = transform.parent.GetComponent <TeleportController>();
 }
示例#13
0
    public override void ExecuteAction(GameObject other)
    {
        TeleportController controller = other.GetComponent <TeleportController> ();

        controller.teleportTo(target.getLocation());
    }