private void Start()
    {
        if (ButtonCooler == 0)
        {
            ButtonCooler = 0.3f;  //if this value is not initalized in the editor it is set to a default
        }


        if (m_dashForce == 0)
        {
            m_dashForce = 1000f;
        }

        m_rigBodRef = GetComponent <Rigidbody>();
        m_camObjRef = GameObject.FindWithTag("MainCamera");

        particleRef = GameObject.Find("Empowered_DashEffect").GetComponent <ParticleSystem>();

        /*Empowered Dash Variable Initialization*/
        m_charContRef = GetComponent <CharacterControler>();

        /*Debug UI init*/
        m_debugCanvasRef    = GameObject.FindWithTag("DebugUI");
        m_debugTextField_01 = GameObject.FindWithTag("DebugUIText01");

        playerLucRef = GameObject.FindWithTag("Player").GetComponent <LucidityControl>();
    }
    // Use this for initialization
    void Start()
    {
        m_resourceControl = GetComponent <LucidityControl>();
        m_cam             = GameObject.FindWithTag("MainCamera").GetComponent <Camera>();

        m_castingObj = Resources.Load("pfb_RescourseCast") as GameObject;
    }
Beispiel #3
0
 private void Awake()
 {
     pLayerRef         = GameObject.FindWithTag("Player");
     playerLucidityRef = pLayerRef.GetComponent <LucidityControl>();
     luciditySliderRef = GameObject.FindWithTag("PlayerLucidityUI").GetComponent <Slider>();
     playerHpRef       = pLayerRef.GetComponent <PlayerHP>();
     healthSliderRef   = GameObject.FindWithTag("PlayerHealthUI").GetComponent <Slider>();
 }
Beispiel #4
0
    public void Start()
    {
        m_DrainEffect = GetComponent <ParticleSystem>();
        m_plrResCont  = GameObject.FindWithTag("Player").GetComponent <LucidityControl>();
        m_resCont     = GetComponent <LucidityControl>();
        m_DrainEffect.IsAlive();

        m_castingObj = Resources.Load("pfb_RescourseCast") as GameObject;
    }
    private void Start()
    {
        playerRef        = GameObject.FindWithTag("Player");
        charContRef      = playerRef.GetComponent <CharacterControler>();
        playerLucContRef = playerRef.GetComponent <LucidityControl>();

        rigBodRef      = playerRef.GetComponent <Rigidbody>();
        doubleJumpFlag = false;
        isDblJumping   = false;
    }
Beispiel #6
0
    public void Transfer(LucidityControl to, int value)
    {
        if (value - balance >= 0)
        {
            balance -= value;
        }

        if (value + to.balance <= to.limit)
        {
            to.balance += value;
        }
    }
Beispiel #7
0
    private void Start()
    {
        if (m_dashForce == 0)
        {
            m_dashForce = 1000f;
        }

        m_rigBodRef  = GetComponent <Rigidbody>();
        particleRef  = GameObject.Find("Empowered_DashEffect").GetComponent <ParticleSystem>();
        playerLucRef = GameObject.FindWithTag("Player").GetComponent <LucidityControl>();
        /*Empowered Dash Variable Initialization*/
        m_charContRef = GetComponent <CharacterControler>();
    }
Beispiel #8
0
 private void Start()
 {
     m_Cam = GameObject.FindWithTag("MainCamera");
     m_rescourseControl = GetComponent <LucidityControl>();
 }
Beispiel #9
0
    public float m_decelForc;   //The amount of deceleration when the projectile collides with something;

    public void Start()
    {
        timeSinceBirth = Time.time;
        m_plrResCont   = GameObject.FindWithTag("Player").GetComponent <LucidityControl>();
        m_rigBodRef    = GetComponent <Rigidbody>();
    }