Example #1
0
    void Start()
    {
        Damage        = 0.001f;
        HitCheck      = false;
        HitRangeCheck = false;

        fadeSystem      = gameObject.GetComponent <FadeSystem>();
        GetHPSkillPoint = ClickControll.GetHPSkill();

        audioSource = gameObject.GetComponent <AudioSource>();
    }
Example #2
0
        public void OnGazeUpdate(GazeData gazeData)
        {
            if (gazeData.LeftEye.RawCoordinates.X == 0 && gazeData.LeftEye.RawCoordinates.Y == 0 &&
                gazeData.RightEye.RawCoordinates.X != 0 && gazeData.RightEye.RawCoordinates.Y != 0)
            {
                ClickControll.LeftClick(Cursor.Position.X, Cursor.Position.Y);
            }
            else if (gazeData.RightEye.RawCoordinates.X == 0 && gazeData.RightEye.RawCoordinates.Y == 0 &&
                     gazeData.LeftEye.RawCoordinates.X != 0 && gazeData.LeftEye.RawCoordinates.Y != 0)
            {
                ClickControll.RightClick(Cursor.Position.X, Cursor.Position.Y);
            }

            base.OnGazeUpdate(gazeData);
        }
Example #3
0
    /*
     * static ClickControll clickControll;
     * clickControll = GetComponent<ClickControll>();
     * GetAtkSkillPoint = clickControll.GetAtkSkill();
     *
     * はエラーがでる.
     */
    void Start()
    {
        Damage            = 0.001f;
        SaveDamage        = 1.0f;
        SkillDamage       = 0.0f;
        HitCheck          = false;
        PartDamage        = 0.02f; //1.0f=100 , 0.01f = 0.01.
        image.enabled     = true;
        imageBack.enabled = true;

        fadeSystem       = gameObject.GetComponent <FadeSystem>();
        GetAtkSkillPoint = ClickControll.GetAtkSkill();

        audioSource = gameObject.GetComponent <AudioSource>();
    }
Example #4
0
 void Start()
 {
     clickControll = gameObject.GetComponent <ClickControll>();
 }