public virtual void Bounce() { BounceObject bounce = image.GetComponent <BounceObject>(); if (bounce != null) { bounce.Bounce = true; } }
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; } }
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()); }
void Start() { bounceObject = this; startPosition = bounceObject.transform.position; }