コード例 #1
0
    public virtual void Bounce()
    {
        BounceObject bounce = image.GetComponent <BounceObject>();

        if (bounce != null)
        {
            bounce.Bounce = true;
        }
    }
コード例 #2
0
        public AmazonSESBounceNotification(string notification)
        {
            AmazonSESNotification amazonSESNotification = null;

            if (TryParse(notification, out amazonSESNotification))
            {
                var amazonSESBounceNotification = amazonSESNotification as AmazonSESBounceNotification;
                Mail             = amazonSESBounceNotification.Mail;
                NotificationType = amazonSESBounceNotification.NotificationType;
                Bounce           = amazonSESBounceNotification.Bounce;
            }
        }
コード例 #3
0
    void Awake()
    {
        playerObject = GameObject.FindWithTag("Player");
        photonObject = GameObject.FindWithTag("Photon");
        player       = playerObject.GetComponent <Player>();
        photon       = photonObject.GetComponent <Photon>();
        photonBounce = photonObject.GetComponent <BounceObject>();

        enemySpawner = GetComponent <EnemySpawner>();
        camShake     = Camera.main.GetComponent <CameraShake>();
        uiManager    = GetComponent <UIManager>();
        audioManager = GameObject.FindWithTag("AudioManager").GetComponent <AudioManager>();

        bgm        = GetComponent <AudioSource>();
        lowPass    = GetComponent <AudioLowPassFilter>();
        gameIsOver = false;

        score = 0;
        StartCoroutine(CountDown());
    }
コード例 #4
0
 void Start()
 {
     bounceObject  = this;
     startPosition = bounceObject.transform.position;
 }