void Start() { Damage = 0.001f; HitCheck = false; HitRangeCheck = false; fadeSystem = gameObject.GetComponent <FadeSystem>(); GetHPSkillPoint = ClickControll.GetHPSkill(); audioSource = gameObject.GetComponent <AudioSource>(); }
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); }
/* * 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>(); }
void Start() { clickControll = gameObject.GetComponent <ClickControll>(); }