protected override void Initialize() { base.Initialize(); arrowPlaceholder = Resources.Load("Prefabs/Arrows/ArrowPlaceholder") as GameObject; gravity = -25.81f; rbObject = gameObject.GetComponent <Rigidbody>(); onHitSoundSource = GameObject.Find("Main Camera").GetComponent <AudioSource>(); playerTideComboManager = GameObject.Find("Player").GetComponent <PlayerTideComboManager>(); playerAimModule = GameObject.Find("Player").GetComponentInChildren <PlayerAimModule>(); }
protected override void Initialize() { playerParticleSystemManager = GetComponentInParent <PlayerParticleSystemManager>(); playerTideComboManager = GetComponentInParent <PlayerTideComboManager>(); playerAnimatorManager = GameObject.Find("Player").GetComponent <PlayerAnimatorManager>(); playerPhysicsModule = GameObject.Find("Player").GetComponentInChildren <PlayerPhysicsModule>(); playerAimModule = GameObject.Find("Player").GetComponentInChildren <PlayerAimModule>(); ui = GameObject.Find("UI").GetComponentInChildren <Ui>(); InitializeArrowheads(); defaultArrowHead = availableArrowheads.Peek(); playerAimModule.currentArrowhead = defaultArrowHead; }
protected override void Initialize() { GameObject player = GameObject.Find("Player"); playerParticleSystemManager = player.GetComponentInChildren <PlayerParticleSystemManager>(); playerAnimatorManager = player.GetComponent <PlayerAnimatorManager>(); playerCamera = GameObject.Find("Main Camera").GetComponent <PlayerCamera>(); playerSkillModule = player.GetComponentInChildren <PlayerSkillModule>(); playerTideComboManager = player.GetComponent <PlayerTideComboManager>(); cameraMain = Camera.main; playerTransForm = player.transform; lockedOn = false; cursor.sprite = lockOffCursor; InitializeModuleID(); playerParticleSystemManager.SetCurrentArrowParticleSystem(); }