Exemplo n.º 1
0
    private void Start()
    {
        if(this.tag != "Garbage")
            Destroy(this);

        ac = FindObjectOfType<AimControl>();
    }
Exemplo n.º 2
0
 /// </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);
 }