private void Start() { if(this.tag != "Garbage") Destroy(this); ac = FindObjectOfType<AimControl>(); }
/// </summary> /// <summary> /// プライベートコンストラクタ private PlayerStateController() { ps = PlayerState.Idle; ac = GameObject.FindObjectOfType<AimControl>(); }
private void Start() { mousePosition = new MousePosition(); this.aimControl = new AimControl(aimPoint.transform, rotatePoint.transform); }