void Start() { controller = SceneHelpers.FindObjectOfType <GvrControllerVisualManager>(true); Assert.IsNotNull(controller); teleport = SceneHelpers.FindObjectOfType <TeleportController>(true); Assert.IsNotNull(teleport); }
void Awake() { teleport = GameObject.Find("TeleportController").GetComponent <TeleportController>(); sight = GameObject.FindGameObjectWithTag("Player").GetComponent <PlayerSight>(); GameObject.FindGameObjectWithTag("GameController").GetComponent <GameController>().onGameRestart += Start; }
void Awake() { input = GetComponent <OGoInput>(); gun = GetComponentInChildren <Gun>(); gunPrevParent = gun.transform.parent; tpController = GetComponent <TeleportController>(); Debug.Log(tpController); }
void Awake() { gun = GetComponentInChildren <Gun>(); input = GetComponent <IInput>(); if (input == null) { Debug.Log("no input found"); } tc = GetComponent <TeleportController>(); }
public void SetCurrentPoint(TeleportController Point) { if (_currentPoint != null) { _oldPoint = _currentPoint; _oldPoint.gameObject.SetActive(true); _oldPoint.RestoreValues(); } _currentPoint = Point; }
private static void OnTick(EventArgs args) { ShopController.Tick(); PhaseController.Tick(); LaneController.Tick(); GankController.Tick(); TeleportController.Tick(); MovementController.Tick(); WardController.Tick(); RecallController.Tick(); }
// 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> (); }
// 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); }
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; }
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>(); }
public override void ExecuteAction(GameObject other) { TeleportController controller = other.GetComponent <TeleportController> (); controller.teleportTo(target.getLocation()); }