Example #1
0
        private void Start()
        {
            m_playerTaggingIdentifier = GetComponent <TaggingIdentifier>();
            m_taggingManager          = FindObjectOfType <TaggingManager>();
            m_boppableInterface       = GetComponent <IBoppable>();
            m_UIManager = FindObjectOfType <UIManager>();

            if (this.tag == "Player")
            {
                m_isPlayer = true;
            }

            if (m_isPlayer)
            {
                m_UIManager.UpdatePowerUpUI(slot1, slot2);
            }

            superSpeedTrail.SetActive(false);
        }
    private void Awake()
    {
        if (this.tag == "Player")
        {
            m_isUserPlayer = true;
        }

        m_boppableInterface  = GetComponent <IBoppable>();
        m_rigidbodyReference = GetComponent <Rigidbody>();
        kingCrown.SetActive(false);
        stunnedStars.SetActive(false);
        forceField.SetActive(false);

        m_rigidbodyReference.isKinematic = true;
        m_amountOfTimeAsKing             = 0;
        m_playersBopped = 0;
        m_timesAsKing   = 0;

        hammerBopAim.localPosition       = new Vector3(0, -0.25f, km_attackDistance);
        m_originalHammerLocalPosition    = hammerTransform.localPosition;
        m_originalHammerLocalEulerAngles = hammerTransform.localEulerAngles;
        m_tempSpeedBoost = 0f;
    }