// Start is called before the first frame update
    void Start()
    {
        spriteRenderer = GetComponent <SpriteRenderer>();
        gm             = GameObject.FindGameObjectWithTag("GameController").GetComponent <Pipe_Game_Manager>();

        /*  if (isStart != 1)
         * {
         *    isActive = 0;
         * }
         * else
         * {
         *    isActive = 1;
         * }
         * hasBeenChecked = 0;
         * changeSkin();
         */
    }
示例#2
0
 // Start is called before the first frame update
 public virtual void Start()
 {
     spriteRenderer = GetComponent <SpriteRenderer>();
     gm             = GameObject.FindGameObjectWithTag("GameController").GetComponent <Pipe_Game_Manager>();
 }