コード例 #1
0
ファイル: InkTutorial.cs プロジェクト: PixelPineapple/NuriOri
 // Use this for initialization
 void Start()
 {
     index       = 0;
     isActivated = false;
     isBlur      = true;
     playSystem  = GameObject.Find("GameManager").GetComponent <PlaySystem>();
 }
コード例 #2
0
 // Use this for initialization
 void Start()
 {
     currentTime     = 0.0f;
     isLife          = false;
     playSystem      = GameObject.Find("GameManager").GetComponent <PlaySystem>();
     currentPosition = targetObject.transform.position;
     gameObject.transform.position = currentPosition;
 }
コード例 #3
0
    private void Awake()
    {
        if (instance != null && instance.GetInstanceID() != GetInstanceID())
        {
            Destroy(gameObject);
            return;
        }

        instance = this;
    }
コード例 #4
0
 public PlayState(PlaySystem system)
 {
     this.system = system;
 }
コード例 #5
0
 public TurningState(PlaySystem system) : base(system)
 {
 }
コード例 #6
0
 public EvaluatingState(PlaySystem system) : base(system)
 {
 }
コード例 #7
0
 public DecalPaintingState(PlaySystem system) : base(system)
 {
 }
コード例 #8
0
 public ColorPaintingState(PlaySystem system) : base(system)
 {
 }
コード例 #9
0
    private bool alreadyActivated; // 一回しか表示されない

    // Use this for initialization
    void Start()
    {
        playSystem       = GameObject.Find("GameManager").GetComponent <PlaySystem>();
        alreadyActivated = false;
    }
コード例 #10
0
    private void purchaseCard(Card c)
    {
        //TODO: Buy card if have enough power,
        //is in the line up
        //and not hand
        //Not Owned
        //TODO: Not FaceDown
        //TODO: Clean Code
        Card_Logic logic = c.getCardLogic();

        if (!Hand.Contains(c) && !logic.getOwned() && logic.IsInPurchaseArea() && logic.IsInLineUp() && PlaySystem.getCurrentPlayer() == this)
        {
            //Add to discard Pile and Remove from line Up list and set ownership to player
            //TEMP? Need If here to check if you release the mouse button then you buy it rather than just when you hover over a player
            if (Input.GetMouseButtonUp(0))
            {
                c.getCardLogic().setPlayerOwned(this);
                DiscardCard(c);
                Play_Board.RemoveFromLineUp(c);
            }
        }
    }
コード例 #11
0
 private void OnDestroy()
 {
     instance = null;
 }