void Start() { playerPause = GetComponent <PlayerPause>(); joint = GetComponent <DistanceJoint2D>(); joint.enabled = false; hook.enabled = false; }
void Start() { if (IsLocalPlayer) { playerPause = GetComponent <PlayerPause>(); rb = GetComponent <Rigidbody2D>(); } }
private void Awake() { command = GetComponentNotNull <Command>(); playerPause = GetComponentNotNull <PlayerPause>(); transform = GetComponentNotNull <C_Transform2DProxy>().transform; ePlayer = GetComponentNotNull <E_Player>(); sharpPointChecker = GetComponentNotNull <C_ColliderChecker>().GetChecker("Sharp Point Checker"); m_Rigidbody2DWrapper = GetComponentNotNull <C_Rigidbody2DProxy>(); bugColliderChecker = GetComponentNotNull <BugColliderChecker>(); }
private void Start() { playerPause = GetComponent <PlayerPause>(); em = bulletParticleSystem.emission; bulletParticleSystem.Play(); if (IsLocalPlayer) { bulletsObj.SetActive(true); } }
void Start() { rb = GetComponent <Rigidbody>(); rb.freezeRotation = true; //speedtext = this.GetComponent<Text>(); playerPause = gameObject.GetComponent <PlayerPause>(); //speed = baseMaxSpeed; //forwardSpeed = baseForwardSpeed; jetBoost.SetActive(true); }
private static void OnPlayerPause(InputAction.CallbackContext context) { PlayerPause?.Invoke(); }