Esempio n. 1
0
 void Start()
 {
     slowTime      = character.GetComponent <SlowTime>();
     playerManager = character.GetComponent <PlayerManager>();
     weapon        = character.GetComponentInChildren <Weapon>();
     timerScript   = UI.GetComponent <Timer>();
 }
Esempio n. 2
0
 // Start is called before the first frame update
 void Start()
 {
     slowTime      = character.GetComponent <SlowTime>();
     playerManager = character.GetComponent <PlayerManager>();
     rotator       = character.GetComponentInChildren <Rotator>();
     weapon        = character.GetComponentInChildren <Weapon>();
     flipper       = character.GetComponent <Flipper>();
 }
Esempio n. 3
0
 // Start is called before the first frame update
 void Start()
 {
     transform.position = new Vector3(player.transform.position.x,
                                      transform.position.y,
                                      transform.position.z);
     previousPos = transform;
     isEvent     = false;
     isMove      = false;
     camera      = GetComponent <FollowCamera>();
     slow        = GetComponent <SlowTime>();
     StartCoroutine(CameraMove());
 }
Esempio n. 4
0
 // Use this for initialization
 void Start()
 {
     _anim = GetComponent<Animator>();
     flashingScreen = GameObject.FindWithTag(Tags.flashingScreenObjectTag).GetComponent<FlashingScreen>();
     _scoreScript = GameObject.FindWithTag(Tags.UITag).GetComponent<Score>();
     _slowTimeScript = GameObject.FindWithTag(Tags.UITag).GetComponent<SlowTime>();
     _rb2D = this.GetComponent<Rigidbody2D>();
     this.gameObject.tag = Tags.playerTag;
     _currentScoreScript = GameObject.FindWithTag(Tags.currentScoreTag).GetComponent<CurrentScore>();
 }
Esempio n. 5
0
 // Start is called before the first frame update
 void Start()
 {
     camera = GameObject.FindGameObjectWithTag("MainCamera").GetComponent <CameraShakeScript>();
     slow   = GameObject.FindGameObjectWithTag("MainCamera").GetComponent <SlowTime>();
 }
 // Update is called once per frame
 void Awake()
 {
     slowTime            = mainCharacter.GetComponent <SlowTime>();
     audioSource         = audioSourceObject.GetComponent <AudioSource>();
     this.fixedDeltaTime = Time.fixedDeltaTime;
 }